#ifndef BODEPLOT_H
#define BODEPLOT_H

#include <QWidget>
#include <qwt_plot.h>

class QwtPlotCurve;
class QwtPlotMarker;
class QwtPlotZoomer;
class QwtPlotPicker;
class QwtPlotPanner;
class Plot;
class QPolygon;

class Plot: public QwtPlot
{
    Q_OBJECT

public:
    Plot(QWidget *parent);

public Q_SLOTS:
    void setDamp(double damping);
    void showData(const double *frequency, const double *amplitude,
        const double *phase, int count);
    void showPeak(double freq, double amplitude);
    void show3dB(double freq);

private:
    QwtPlotCurve *d_curve1;
    QwtPlotCurve *d_curve2;
    QwtPlotMarker *d_marker1;
    QwtPlotMarker *d_marker2;
};

#endif // BODEPLOT_H
